/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 出入库类型Entity
 * @author HOHD
 * @version 2020-12-31
 */
@Table(name="st_in_out_warehouse_type", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="type_name", attrName="typeName", label="类别名称", queryType=QueryType.LIKE),
		@Column(name="sort_number", attrName="sortNumber", label="排序"),
		@Column(name="in_out_direction", attrName="inOutDirection", label="出入库方向"),
		@Column(name="system_in", attrName="systemIn", label="系统内置"),
		@Column(name="effect", attrName="effect", label="有效"),
	}, orderBy="a.id DESC"
)
public class StInOutWarehouseType extends DataEntity<StInOutWarehouseType> {
	
	private static final long serialVersionUID = 1L;
	private String typeName;		// 类别名称
	private Integer sortNumber;		// 排序
	private Integer inOutDirection;		// 出入库方向
	private Integer systemIn;		// 系统内置
	private Integer effect;		// 有效
	
	public StInOutWarehouseType() {
		this(null);
	}

	public StInOutWarehouseType(String id){
		super(id);
	}
	
	@Length(min=0, max=20, message="类别名称长度不能超过 20 个字符")
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
	public Integer getSortNumber() {
		return sortNumber;
	}

	public void setSortNumber(Integer sortNumber) {
		this.sortNumber = sortNumber;
	}
	
	public Integer getInOutDirection() {
		return inOutDirection;
	}

	public void setInOutDirection(Integer inOutDirection) {
		this.inOutDirection = inOutDirection;
	}
	
	public Integer getSystemIn() {
		return systemIn;
	}

	public void setSystemIn(Integer systemIn) {
		this.systemIn = systemIn;
	}
	
	public Integer getEffect() {
		return effect;
	}

	public void setEffect(Integer effect) {
		this.effect = effect;
	}
	
}